import Home from '@/pages/Home'

export default[
  {
    name:'home',
    path: '/home',
    // 路由懒加载
    component: Home,
  },
  {
    path: '/login',
    component: () => import('@/pages/Login'),
  },
  // 重定向到home
  {
    path: '*',
    redirect: '/home',
  },
]